package net.hn.hnms.biz.safety.water.company.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import net.hn.hnms.biz.safety.water.company.domain.CGKAlarmVO;
import net.hn.hnms.biz.safety.water.company.service.CompanyService;
import net.hn.hnms.sys.common.core.domain.R;
import net.hn.hnms.sys.common.satoken.config.AutoSetMineCode;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("company/water")
@Api(tags = {"水害-公司端"})
public class WaterCompanyController {

    /**
     * 公司端接口服务
     */
    @Resource
    private CompanyService companyService;

    @GetMapping("/getTodayCGKAlarmList")
    @ApiOperation("获取当天长观孔报警列表")
    @AutoSetMineCode
    public R<List<CGKAlarmVO>> getTodayCGKAlarmList(String companyCode){
        List<CGKAlarmVO>  list= companyService.getTodayCGKAlarmList(companyCode);
        return R.ok(list);
    }
}
